package com.damage.common.config;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
@Data
public class DepartmentConfig {

    public static final Integer adminDeptNum = 0;
    public static final Integer purchaseDeptNum = 1;
    public static final Integer businessDeptNum = 2;
    public static final Integer materielDeptNum = 3;

    public static final String adminDept = "adminDept";
    public static final String purchaseDept = "purchaseDept";
    public static final String businessDept = "businessDept";
    public static final String materielDept = "materielDept";

    //部门名字和号码之间的映射
    public final static Map<Integer,String> deptMap = new HashMap<Integer,String>(){
        {
            put(0,"adminDept");
            put(1,"purchaseDept");
            put(2,"businessDept");
            put(3,"materielDept");
        }
    };
}
